<?php

declare(strict_types=1);

namespace App\Model\Stat;

use Hyperf\DbConnection\Model\Model;

/**
 *  每日留存统计
 */
class StatDailyKeep extends Model
{
    protected $connection = 'stat';
    protected $table = 'stat_daily_keep';
    protected $fillable = ['stat_type', 'dt', 'keep_1', 'keep_2', 'keep_3', 'keep_7', 'keep_15', 'keep_30', 'keep_1_num', 'keep_2_num', 'keep_3_num', 'keep_7_num', 'keep_15_num', 'keep_20_num', 'channel'];

    const STAT_TYPE_HOST = 1;
    const STAT_TYPE_USER = 2;
    const STAT_TYPE_RECHARGE = 3;
    const STAT_TYPE_ALL = 0;
    const STAT_TYPE = [
        self::STAT_TYPE_ALL => '所有',
        self::STAT_TYPE_HOST => '主播',
        self::STAT_TYPE_USER => '普通男用户',
        self::STAT_TYPE_RECHARGE => '充值用户',
    ];
}
